<?php

namespace app\company\model;

use app\common\model\BaseModel;
use app\common\model\Dealer;
use app\common\model\DealerGoods;
use app\common\model\DealerGoodsCate;
use think\model\relation\BelongsTo;

class ReportGoodsOut extends BaseModel
{
    protected $deleteTime = false;

    public function dealer(): BelongsTo
    {
        return $this->belongsTo(Dealer::class, 'dealer_id');
    }

    public function cate(): BelongsTo
    {
        return $this->belongsTo(DealerGoodsCate::class, 'dealer_cate_id');
    }

    public function goods(): BelongsTo
    {
        return $this->belongsTo(DealerGoods::class, 'dealer_goods_id');
    }
}